
{/*复合组件 */}
function Name(props) {
    return <h3>复合组件示例：Name {props.name}</h3>;
}

function Url(props) {
    return <h3>复合组件示例：Url {props.url}</h3>;
}

function NickName(props) {
    return <h3>复合组件示例：NickName {props.nickName}</h3>;
}

function Component003(props) {
    return (
        <div>
        <Name name={props.pName}/>
        <Url url={props.pUrl}/>
        <NickName nickName={props.pNickName}/>
    </div>
    );
}
export default Component003;